package com.study.designPattern.structure.decorator;

/**
 * @author ysy
 * @version 1.0
 * @Title: LuxuryCarDecorator
 * @Note <b>ProjectName:</b> cusc-venus
 * <br><b>PackageName:</b> com.cusc.venus.acc.center.util.designPattern.decorator
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>
 *
 */
public class LuxuryCarDecorator extends CarDecorator{

    public LuxuryCarDecorator(Car decoratorCar) {
        super(decoratorCar);
    }

    public void drive(){
        decoratorCar.drive();
        decribeLuxury(decoratorCar);
    }


    private void decribeLuxury(Car decoratorCar){
        System.out.println("car is luxury");
    }
}
